Dashboard Metrics
Activity & Metrics
Dashboard Metrics
GET
Dashboard Metrics
Retrieve aggregated metrics and time-series data for dashboard visualizations.
Authentication
Requires organization member authentication.Get Dashboard Metrics
GET /api/metrics/dashboard
Retrieve comprehensive dashboard metrics including KPIs and time-series data.
Query Parameters
Time range for metrics. Options:
24h- Last 24 hours (hourly buckets)3d- Last 3 days (daily buckets)7d- Last 7 days (daily buckets)14d- Last 14 days (daily buckets)1m- Last 30 days (daily buckets)3m- Last 90 days (weekly buckets)6m- Last 180 days (weekly buckets)1y- Last 365 days (monthly buckets)
Filter metrics to a specific board
Filter metrics to boards in a specific board group
Response
Selected time range key
ISO 8601 timestamp when metrics were generated
Key performance indicators
Number of agents active in the selected range
Number of tasks currently in progress
Percentage of events that are errors
Median cycle time in hours for the range (null if no data)
Task completion throughput over time
Comparison period series (same structure as primary)
Average cycle time in hours (same structure as throughput)
Error rate percentage over time (same structure as throughput)
Work-in-progress status breakdown
Comparison period WIP series
Example Request
Example Response
Metric Definitions
Throughput
Number of tasks that reachedreview status in each time bucket. Measures team velocity and completion rate.
Cycle Time
Average time in hours from when a task entersin_progress status to when it reaches review status. Lower is better.
Error Rate
Percentage of activity events with event types matching the pattern%failed. Higher values indicate quality issues.
Work in Progress (WIP)
Breakdown of tasks by status:- Inbox: Tasks created but not started
- In Progress: Tasks actively being worked on
- Review: Tasks completed and awaiting review
- Done: Tasks fully completed
Active Agents
Number of agents with alast_seen_at timestamp within the selected range.
Tasks in Progress
Current count of tasks within_progress status that were updated within the range.
Time Buckets
Metrics are aggregated into time buckets based on the selected range:- hour: For 24h range
- day: For 3d, 7d, 14d, 1m ranges
- week: For 3m, 6m ranges
- month: For 1y range
- Hour buckets: Start of hour
- Day buckets: Start of day (00:00:00)
- Week buckets: Monday 00:00:00
- Month buckets: First day of month 00:00:00
Comparison Period
Each metric includes a comparison period equal in length to the primary period, ending where the primary period starts. This allows for period-over-period trend analysis. For example, withrange=7d:
- Primary: Last 7 days
- Comparison: Previous 7 days before that
Access Control
Users see metrics aggregated from all boards they have read access to in their organization. Useboard_id or group_id to filter to specific boards.